export const TYPE = 2
export const leftSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '项目',
    keyIndex: 'title',
    placeholder: '请输入项目名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  // {
  //   type: 'input',
  //   value: '',
  //   label: '企业',
  //   keyIndex: 'xxxxxxCom',
  //   placeholder: '请输入企业名称',
  //   span: 4,
  //   visible: true,
  //   inputWidth: '100%',
  //   size: 'small'
  // },
  {
    type: 'select',
    value: '',
    options: [
      {
        label: '遴选',
        value: '1'
      },
      {
        label: '初赛',
        value: '2'
      },
      {
        label: '复赛',
        value: '3'
      },
      {
        label: '决赛',
        value: '4'
      }
    ],
    label: '比赛阶段',
    keyIndex: 'scheduleType',
    placeholder: '请选择',
    span: 4,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '操作人',
    keyIndex: 'creator',
    placeholder: '请输入操作人名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  }
]

export const middleSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '项目',
    keyIndex: 'title',
    placeholder: '请输入项目名称',
    span: 3,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: [
      {
        label: '遴选',
        value: '1'
      },
      {
        label: '初赛',
        value: '2'
      },
      {
        label: '复赛',
        value: '3'
      },
      {
        label: '决赛',
        value: '4'
      }
    ],
    label: '比赛阶段',
    keyIndex: 'scheduleType',
    placeholder: '请选择',
    span: 3,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '创建人',
    keyIndex: 'creator',
    placeholder: '请输入操作人名称',
    span: 3,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: [

      {
        label: '未审核',
        value: '0'
      },
      {
        label: '审核中',
        value: '1'
      },
      {
        label: '已审核',
        value: '2'
      }
    ],
    label: '是否已审核',
    keyIndex: 'examineFlag',
    placeholder: '请选择',
    span: 4,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: [

      {
        label: '驳回',
        value: '0'
      },
      {
        label: '通过',
        value: '1'
      }
    ],
    label: '是否通过审核',
    keyIndex: 'examineStatus',
    placeholder: '请选择',
    span: 4,
    inputWidth: '100%',
    size: 'small'
  }
]

export const addColumnConfig = [
  {
    type: 'input',
    value: '',
    label: '名称',
    keyIndex: 'name',
    placeholder: '输入名称。10字以内',
    span: 24,
    rules: { required: true, message: '请输入名称', trigger: 'change' },
    visible: true,
    inputWidth: '300px',
    inputRef: 'name',
    maxlength: 10,
    showWordLimit: true,
    inputType: 'text'
  },
  {
    type: 'radio',
    value: '0',
    label: '发布状态',
    keyIndex: 'status',
    span: 24,
    options: [
      {
        value: '1',
        label: '发布'
      },
      {
        value: '0',
        label: '不发布'
      }
    ]
  }
]

export const leftTableConfig = {
  colums: [
    {
      props: 'title',
      label: '项目名称',
      width: '200'
    },
    {
      props: 'staturStr',
      label: '发布状态',
      width: 80
    },
    {
      props: 'scheduleTypeStr',
      label: '比赛阶段',
      width: 80
    },
    {
      props: 'creator',
      label: '创建人'
    },
    {
      props: 'dept',
      label: '部门'
    },
    {
      props: 'job',
      label: '职位'
    },
    {
      props: 'endTime',
      label: '截止时间',
      sortable: true,
      width: 160,
    }
  ],
  showSelection: true,
  showIndex: true
}

export const resultClassifiyConfig = {
  colums: [
    {
      props: 'title',
      label: '项目名称',
      width: 180
    },
    {
      props: 'examineFlagStr',
      label: '是否已审核'
    },
    {
      props: 'examineStatusStr',
      label: '是否审核通过'
    },
    {
      props: 'scheduleTypeStr',
      label: '比赛阶段'
    },
    {
      props: 'creator',
      label: '创建人'
    },
    {
      props: 'dept',
      label: '部门'
    },
    {
      props: 'job',
      label: '职位'
    },
    {
      props: 'endTime',
      label: '截止时间',
      sortable: true
    }
  ],
  showSelection: true,
  showIndex: true
}

export const recycleBinSearchConfig = [
  {
    type: 'input',
    value: '',
    label: '项目',
    keyIndex: 'title',
    placeholder: '请输入项目名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: [
      {
        label: '遴选',
        value: '1'
      },
      {
        label: '初赛',
        value: '2'
      },
      {
        label: '复赛',
        value: '3'
      },
      {
        label: '决赛',
        value: '4'
      }
    ],
    label: '比赛阶段',
    keyIndex: 'scheduleType',
    placeholder: '请选择',
    span: 4,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'input',
    value: '',
    label: '创建人',
    keyIndex: 'creator',
    placeholder: '请输入操作人名称',
    span: 4,
    visible: true,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: [

      {
        label: '未审核',
        value: '0'
      },
      {
        label: '审核中',
        value: '1'
      },
      {
        label: '已审核',
        value: '2'
      }
    ],
    label: '是否已审核',
    keyIndex: 'examineFlag',
    placeholder: '请选择',
    span: 4,
    inputWidth: '100%',
    size: 'small'
  },
  {
    type: 'select',
    value: '',
    options: [

      {
        label: '驳回',
        value: '0'
      },
      {
        label: '通过',
        value: '1'
      }
    ],
    label: '是否通过审核',
    keyIndex: 'examineStatus',
    placeholder: '请选择',
    span: 4,
    inputWidth: '100%',
    size: 'small'
  }
]
export const recycleBinConfig = {
  colums: [
    {
      props: 'title',
      label: '项目名称',
      sortable: true
    },
    {
      props: 'creator',
      label: '创建人'
    },
    {
      props: 'dept',
      label: '部门'

    },
    {
      props: 'job',
      label: '职位'
    },
    {
      props: 'endTime',
      label: '截止时间',
      sortable: true
    }

  ],
  showIndex: true
}
export const addPopFormConfig = [
  {
    type: 'input',
    value: '',
    label: '项目名称',
    keyIndex: 'title',
    placeholder: '请输入项目名称',
    rules: { required: true, message: '请输入项目名称', trigger: 'change' },
    span: 24,
    visible: true,
    inputWidth: '300px',
    maxlength: 50,
    inputType: 'text'
  },
  {
    type: 'select',
    value: '',
    label: '项目类型',
    keyIndex: 'projectTypeId',
    placeholder: '请选择项目类型',
    options: [
      {
        label: '8',
        value: 8
      },
      {
        label: '9',
        value: 9
      }
    ],
    rules: { required: true, message: '请选择项目类型', trigger: 'change' },
    span: 24,
    visible: true,
    inputWidth: '300px'
  },
  {
    type: 'uploadImg',
    value: '',
    label: '举办单位',
    keyIndex: 'holdUnitUrl',
    span: 12,
    style: {
      width: '220px',
      height: '160px'
    },
    tips: ',建议尺寸为 160px * 220px 或等比例缩放图片',
    rules: { required: true, message: '请上传举办单位logo', trigger: 'change' }
  },
  {
    type: 'edit',
    value: '',
    label: '项目说明',
    keyIndex: 'projectDescription',
    placeholder: '请输入副标题',
    rules: { required: true, message: '请输入项目说明', trigger: 'change' },
    span: 24,
    visible: true,
    inputWidth: '80%',
    height: '300px',
    maxlength: 2000,
    inputType: 'text',
    autosize: { minRows: 3, maxRows: 7 }
  },
  {
    label: '参赛类型',
    visible: true,
    slot: 'competitionType'
  },
  {
    visible: true,
    slot: 'competitionPlan'
  },
  {
    type: 'edit',
    value: '',
    label: '参赛须知',
    keyIndex: 'entryInformation',
    placeholder: '请输入参赛须知',
    span: 24,
    visible: true,
    rules: { required: true, message: '请输入参赛须知', trigger: 'change' },
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    height: '300px'
  },
  {
    type: 'edit',
    value: '',
    label: '比赛规则',
    keyIndex: 'competitionRules',
    placeholder: '请输入比赛规则',
    span: 24,
    visible: true,
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    height: '300px'
  },
  {
    type: 'edit',
    visible: true,
    slot: 'pingShenWays'
  },
  {
    type: 'edit',
    value: '',
    label: '参赛要求',
    keyIndex: 'entryRequire',
    placeholder: '请输入参赛要求',
    span: 24,
    visible: true,
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    rules: { required: true, message: '请输入参赛要求', trigger: 'change' },
    height: '300px'
  },
  {
    type: 'edit',
    value: '',
    label: '项目奖励',
    keyIndex: 'projectRewards',
    placeholder: '请输入项目奖励',
    span: 24,
    visible: true,
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    rules: { required: true, message: '请输入项目奖励', trigger: 'change' },
    height: '300px'
  },
  {
    type: 'video',
    value: '',
    label: '视频介绍',
    keyIndex: 'videoUrl',
    span: 24
  },
  {
    type: 'edit',
    value: '',
    label: '大赛组织',
    keyIndex: 'competitionOrganization',
    placeholder: '请输入大赛组织',
    span: 24,
    visible: true,
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    rules: { required: true, message: '请输入大赛组织', trigger: 'change' },
    height: '300px'
  },
  {
    span: 24,
    slot: 'comFiles'
  }
]

export const viewFormConfig = [
  {
    type: 'input',
    value: '',
    label: '项目名称',
    keyIndex: 'title',
    placeholder: '请输入项目名称',
    rules: { required: true, message: '请输入项目名称', trigger: 'change' },
    span: 24,
    visible: true,
    inputWidth: '300px',
    maxlength: 50,
    inputType: 'text'
  },
  {
    type: 'select',
    value: '',
    label: '项目类型',
    keyIndex: 'projectTypeId',
    placeholder: '请选择项目类型',
    options: [
      {
        label: '8',
        value: 8
      },
      {
        label: '9',
        value: 9
      }
    ],
    rules: { required: true, message: '请选择项目类型', trigger: 'change' },
    span: 24,
    visible: true,
    inputWidth: '300px'
  },
  {
    type: 'uploadImg',
    value: '',
    label: '举办单位',
    keyIndex: 'holdUnitUrl',
    span: 12,
    style: {
      width: '220px',
      height: '160px'
    },
    tips: ',建议尺寸为 160px * 220px 或等比例缩放图片',
    rules: { required: true, message: '请上传举办单位logo', trigger: 'change' }
  },
  {
    type: 'edit',
    value: '',
    label: '项目说明',
    keyIndex: 'projectDescription',
    placeholder: '请输入副标题',
    rules: { required: true, message: '请输入项目说明', trigger: 'change' },
    span: 24,
    visible: true,
    inputWidth: '80%',
    height: '300px',
    maxlength: 2000,
    inputType: 'text',
    autosize: { minRows: 3, maxRows: 7 }
  },
  {
    label: '参赛类型',
    visible: true,
    slot: 'competitionType'
  },
  {
    visible: true,
    slot: 'competitionPlan'
  },
  {
    type: 'edit',
    value: '',
    label: '参赛须知',
    keyIndex: 'entryInformation',
    placeholder: '请输入参赛须知',
    span: 24,
    visible: true,
    rules: { required: true, message: '请输入参赛须知', trigger: 'change' },
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    height: '300px'
  },
  {
    type: 'edit',
    value: '',
    label: '比赛规则',
    keyIndex: 'competitionRules',
    placeholder: '请输入比赛规则',
    span: 24,
    visible: true,
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    height: '300px'
  },
  {
    type: 'edit',
    visible: true,
    slot: 'pingShenWays'
  },
  {
    type: 'edit',
    value: '',
    label: '参赛要求',
    keyIndex: 'entryRequire',
    placeholder: '请输入参赛要求',
    span: 24,
    visible: true,
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    rules: { required: true, message: '请输入参赛要求', trigger: 'change' },
    height: '300px'
  },
  {
    type: 'edit',
    value: '',
    label: '项目奖励',
    keyIndex: 'projectRewards',
    placeholder: '请输入项目奖励',
    span: 24,
    visible: true,
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    rules: { required: true, message: '请输入项目奖励', trigger: 'change' },
    height: '300px'
  },
  {
    type: 'video',
    value: '',
    label: '视频介绍',
    keyIndex: 'videoUrl',
    span: 24
  },
  {
    type: 'edit',
    value: '',
    label: '大赛组织',
    keyIndex: 'competitionOrganization',
    placeholder: '请输入大赛组织',
    span: 24,
    visible: true,
    inputWidth: '80%',
    maxlength: 2000,
    autosize: { minRows: 3, maxRows: 7 },
    rules: { required: true, message: '请输入大赛组织', trigger: 'change' },
    height: '300px'
  },
  {
    span: 24,
    slot: 'comFiles'
  }
]

export const statusEnum = {
  '0': '未发布',
  '1': '发布',
  '2': '下架'
}

export const scheduleTypeEnum = {
  '1': '遴选',
  '2': '初赛',
  '3': '复赛',
  '4': '决赛'
}

export const examineFlagEnum = {
  // 0:未审核;1:审核中;2:已审核
  '0': '未审核',
  '1': '审核中',
  '2': '已审核'
}
